package com.hzw.saas.web.app.rss.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.config.util.PageParam;
import com.hzw.saas.common.util.constants.PatternConsts;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @Description
 * @Date 2021/9/24 11:52 上午
 * @Created by sonam
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "文献检索参数")
public class LibrarySearchParam {

    @ApiModelProperty(value = "文献标题", notes = "按文章标题检索")
    private List<String> titles;

    @ApiModelProperty(value = "作者名称", notes = "按作者检索")
    private List<String> authors;

    @ApiModelProperty(value = "文献名称", notes = "按期刊名检索")
    private List<String> journalName;

    @ApiModelProperty(value = "分类ID", notes = "分类查询")
    private List<String> catalogIds;

    @ApiModelProperty(value = "关键字查询", notes = "关键字查询")
    private List<String> keyWords;

    @ApiModelProperty(value = "文献发布日期区间起始")
    @JsonFormat(pattern = PatternConsts.NORM_DATE_PATTERN)
    private Date pubStartDate;

    @ApiModelProperty(value = "文献发布日期区间结束")
    @JsonFormat(pattern = PatternConsts.NORM_DATE_PATTERN)
    private Date pubEndDate;

    @ApiModelProperty(value = "分页参数")
    private PageParam pageParam;

    @ApiModelProperty(value = "查询的类型，2：全部，1：收藏，0：上传")
    private Integer type;

}
